#ifndef _SMTP_HPP_
#define _SMTP_HPP_

#include <connections.hpp>
#include <map>
#include <vector>

using namespace std;

class SMTP : public Connection
{
private:
  string sender;
  vector<string> receivers;
  string mail_host;
  map<string, string> headers;
  string response;
  bool rcpt_allowed;
  Connection conn;
public:
  SMTP();
  SMTP(string host_ip);
  ~SMTP();
  /* Inherited from the parent.
  void connect_to(string host_ip, int port);
  */
  void set_header(string field, string value);
  string add_rcpt_to(string mail_to);
  string mail_from(string mail_from);
  string ehlo();
  string helo();
  /* Inherited from the parent.
  void send_data(string data);
  */
  string end_mail();
};
#endif
